﻿<dxdo:LayoutPanel xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"  x:Class="GenericGridControl.BigDataTableControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:dxe="clr-namespace:DevExpress.Xpf.Editors.Settings;assembly=DevExpress.Xpf.Core.v12.1"
             xmlns:dxdo="http://schemas.devexpress.com/winfx/2008/xaml/docking"
             Caption="{Binding Path=TableName}"
             >
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="30"></RowDefinition>
            <RowDefinition></RowDefinition>
            <RowDefinition Height="20"></RowDefinition>
        </Grid.RowDefinitions>
        <Label FontSize="8" Name="GridComment" HorizontalAlignment="Center" Grid.Row="0" Content="{Binding TableComment}"></Label>
        <dxg:GridControl Grid.Row="1" Grid.RowSpan="10" ItemsSource="{Binding DynamicGridSource}" Name="dynamicTableGrid" AutoPopulateColumns="True">
        </dxg:GridControl>
        <StackPanel Grid.Row="2" Height="20" VerticalAlignment="Stretch" Orientation="Horizontal">
            <Button Name="AddNewRowButton" Height="20" Width="90" VerticalAlignment="Stretch" Click="AddNewRowButton_Click">Add new row</Button>
            <Button Name="CopyButton" Height="20" Width="230" VerticalAlignment="Stretch" Click="CopyButton_Click">Copy data to spreadhsheet location</Button>
            <!--
            <Button Name="RefreshSpreadsheetButton" Height="20" Width="160" VerticalAlignment="Stretch" Click="RefreshSpreadsheetSourceButton_Click">Refresh spreadsheet source</Button>
            -->
        </StackPanel>    
    </Grid>
</dxdo:LayoutPanel>
